package com.bjsxt.service.impl;

import com.bjsxt.mapper.PlannerMapper;
import com.bjsxt.pojo.PageA;
import com.bjsxt.pojo.Planner;
import com.bjsxt.service.PlannerService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PlannerServiceImpl implements PlannerService {

    @Autowired
    private PlannerMapper plannerMapper;

    @Override
    public PageA<Planner> selectPlannerSice(Integer cid) {
        List<Planner> list = plannerMapper.selectPlanner(cid);
        PageA<Planner> pg=new PageA<>();
        pg.setRows(list);
        return pg;
    }
}
